package com.meiyou.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MeiyougbaskExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MeiyougbaskExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGIdIsNull() {
            addCriterion("g_id is null");
            return (Criteria) this;
        }

        public Criteria andGIdIsNotNull() {
            addCriterion("g_id is not null");
            return (Criteria) this;
        }

        public Criteria andGIdEqualTo(Integer value) {
            addCriterion("g_id =", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdNotEqualTo(Integer value) {
            addCriterion("g_id <>", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdGreaterThan(Integer value) {
            addCriterion("g_id >", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("g_id >=", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdLessThan(Integer value) {
            addCriterion("g_id <", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdLessThanOrEqualTo(Integer value) {
            addCriterion("g_id <=", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdIn(List<Integer> values) {
            addCriterion("g_id in", values, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdNotIn(List<Integer> values) {
            addCriterion("g_id not in", values, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdBetween(Integer value1, Integer value2) {
            addCriterion("g_id between", value1, value2, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdNotBetween(Integer value1, Integer value2) {
            addCriterion("g_id not between", value1, value2, "gId");
            return (Criteria) this;
        }

        public Criteria andGGIdIsNull() {
            addCriterion("g_g_id is null");
            return (Criteria) this;
        }

        public Criteria andGGIdIsNotNull() {
            addCriterion("g_g_id is not null");
            return (Criteria) this;
        }

        public Criteria andGGIdEqualTo(Integer value) {
            addCriterion("g_g_id =", value, "gGId");
            return (Criteria) this;
        }

        public Criteria andGGIdNotEqualTo(Integer value) {
            addCriterion("g_g_id <>", value, "gGId");
            return (Criteria) this;
        }

        public Criteria andGGIdGreaterThan(Integer value) {
            addCriterion("g_g_id >", value, "gGId");
            return (Criteria) this;
        }

        public Criteria andGGIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("g_g_id >=", value, "gGId");
            return (Criteria) this;
        }

        public Criteria andGGIdLessThan(Integer value) {
            addCriterion("g_g_id <", value, "gGId");
            return (Criteria) this;
        }

        public Criteria andGGIdLessThanOrEqualTo(Integer value) {
            addCriterion("g_g_id <=", value, "gGId");
            return (Criteria) this;
        }

        public Criteria andGGIdIn(List<Integer> values) {
            addCriterion("g_g_id in", values, "gGId");
            return (Criteria) this;
        }

        public Criteria andGGIdNotIn(List<Integer> values) {
            addCriterion("g_g_id not in", values, "gGId");
            return (Criteria) this;
        }

        public Criteria andGGIdBetween(Integer value1, Integer value2) {
            addCriterion("g_g_id between", value1, value2, "gGId");
            return (Criteria) this;
        }

        public Criteria andGGIdNotBetween(Integer value1, Integer value2) {
            addCriterion("g_g_id not between", value1, value2, "gGId");
            return (Criteria) this;
        }

        public Criteria andGUCountIsNull() {
            addCriterion("g_u_count is null");
            return (Criteria) this;
        }

        public Criteria andGUCountIsNotNull() {
            addCriterion("g_u_count is not null");
            return (Criteria) this;
        }

        public Criteria andGUCountEqualTo(String value) {
            addCriterion("g_u_count =", value, "gUCount");
            return (Criteria) this;
        }

        public Criteria andGUCountNotEqualTo(String value) {
            addCriterion("g_u_count <>", value, "gUCount");
            return (Criteria) this;
        }

        public Criteria andGUCountGreaterThan(String value) {
            addCriterion("g_u_count >", value, "gUCount");
            return (Criteria) this;
        }

        public Criteria andGUCountGreaterThanOrEqualTo(String value) {
            addCriterion("g_u_count >=", value, "gUCount");
            return (Criteria) this;
        }

        public Criteria andGUCountLessThan(String value) {
            addCriterion("g_u_count <", value, "gUCount");
            return (Criteria) this;
        }

        public Criteria andGUCountLessThanOrEqualTo(String value) {
            addCriterion("g_u_count <=", value, "gUCount");
            return (Criteria) this;
        }

        public Criteria andGUCountLike(String value) {
            addCriterion("g_u_count like", value, "gUCount");
            return (Criteria) this;
        }

        public Criteria andGUCountNotLike(String value) {
            addCriterion("g_u_count not like", value, "gUCount");
            return (Criteria) this;
        }

        public Criteria andGUCountIn(List<String> values) {
            addCriterion("g_u_count in", values, "gUCount");
            return (Criteria) this;
        }

        public Criteria andGUCountNotIn(List<String> values) {
            addCriterion("g_u_count not in", values, "gUCount");
            return (Criteria) this;
        }

        public Criteria andGUCountBetween(String value1, String value2) {
            addCriterion("g_u_count between", value1, value2, "gUCount");
            return (Criteria) this;
        }

        public Criteria andGUCountNotBetween(String value1, String value2) {
            addCriterion("g_u_count not between", value1, value2, "gUCount");
            return (Criteria) this;
        }

        public Criteria andGStateIsNull() {
            addCriterion("g_state is null");
            return (Criteria) this;
        }

        public Criteria andGStateIsNotNull() {
            addCriterion("g_state is not null");
            return (Criteria) this;
        }

        public Criteria andGStateEqualTo(String value) {
            addCriterion("g_state =", value, "gState");
            return (Criteria) this;
        }

        public Criteria andGStateNotEqualTo(String value) {
            addCriterion("g_state <>", value, "gState");
            return (Criteria) this;
        }

        public Criteria andGStateGreaterThan(String value) {
            addCriterion("g_state >", value, "gState");
            return (Criteria) this;
        }

        public Criteria andGStateGreaterThanOrEqualTo(String value) {
            addCriterion("g_state >=", value, "gState");
            return (Criteria) this;
        }

        public Criteria andGStateLessThan(String value) {
            addCriterion("g_state <", value, "gState");
            return (Criteria) this;
        }

        public Criteria andGStateLessThanOrEqualTo(String value) {
            addCriterion("g_state <=", value, "gState");
            return (Criteria) this;
        }

        public Criteria andGStateLike(String value) {
            addCriterion("g_state like", value, "gState");
            return (Criteria) this;
        }

        public Criteria andGStateNotLike(String value) {
            addCriterion("g_state not like", value, "gState");
            return (Criteria) this;
        }

        public Criteria andGStateIn(List<String> values) {
            addCriterion("g_state in", values, "gState");
            return (Criteria) this;
        }

        public Criteria andGStateNotIn(List<String> values) {
            addCriterion("g_state not in", values, "gState");
            return (Criteria) this;
        }

        public Criteria andGStateBetween(String value1, String value2) {
            addCriterion("g_state between", value1, value2, "gState");
            return (Criteria) this;
        }

        public Criteria andGStateNotBetween(String value1, String value2) {
            addCriterion("g_state not between", value1, value2, "gState");
            return (Criteria) this;
        }

        public Criteria andGTimeIsNull() {
            addCriterion("g_time is null");
            return (Criteria) this;
        }

        public Criteria andGTimeIsNotNull() {
            addCriterion("g_time is not null");
            return (Criteria) this;
        }

        public Criteria andGTimeEqualTo(Date value) {
            addCriterion("g_time =", value, "gTime");
            return (Criteria) this;
        }

        public Criteria andGTimeNotEqualTo(Date value) {
            addCriterion("g_time <>", value, "gTime");
            return (Criteria) this;
        }

        public Criteria andGTimeGreaterThan(Date value) {
            addCriterion("g_time >", value, "gTime");
            return (Criteria) this;
        }

        public Criteria andGTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("g_time >=", value, "gTime");
            return (Criteria) this;
        }

        public Criteria andGTimeLessThan(Date value) {
            addCriterion("g_time <", value, "gTime");
            return (Criteria) this;
        }

        public Criteria andGTimeLessThanOrEqualTo(Date value) {
            addCriterion("g_time <=", value, "gTime");
            return (Criteria) this;
        }

        public Criteria andGTimeIn(List<Date> values) {
            addCriterion("g_time in", values, "gTime");
            return (Criteria) this;
        }

        public Criteria andGTimeNotIn(List<Date> values) {
            addCriterion("g_time not in", values, "gTime");
            return (Criteria) this;
        }

        public Criteria andGTimeBetween(Date value1, Date value2) {
            addCriterion("g_time between", value1, value2, "gTime");
            return (Criteria) this;
        }

        public Criteria andGTimeNotBetween(Date value1, Date value2) {
            addCriterion("g_time not between", value1, value2, "gTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}